package com.atom.process.cnmuseum.bm.tool;

public class PageUtils {
	private int pagenumber;
	private int pagesize;
	private int total;
	
	private int start;
	private int end;
	
	
	public PageUtils(int pagenumber, int pagesize, int total) {
		this.pagenumber = pagenumber;
		this.pagesize = pagesize;
		this.total = total;
		end = pagenumber*pagesize;
		start = end-pagesize<0?0:end-pagesize;
	}


	public int getPagenumber() {
		return pagenumber;
	}


	public void setPagenumber(int pagenumber) {
		this.pagenumber = pagenumber;
	}


	public int getPagesize() {
		return pagesize;
	}


	public void setPagesize(int pagesize) {
		this.pagesize = pagesize;
	}


	public int getTotal() {
		return total;
	}


	public void setTotal(int total) {
		this.total = total;
	}


	public int getStart() {
		return start;
	}


	public void setStart(int start) {
		this.start = start;
	}


	public int getEnd() {
		return end;
	}


	public void setEnd(int end) {
		this.end = end;
	}
	

	
	
}
